package com.jeeplus.modules.common.excel.common.validator.impl;

import com.jeeplus.modules.api.student.service.StudentsService;
import com.jeeplus.modules.common.excel.common.anno.NameAndNumber;
import com.jeeplus.modules.common.excel.common.validator.abs.AbstractValidator;

import java.lang.reflect.Field;
import java.util.List;
import java.util.Map;

/**
 * 姓名和学号校验(废弃)
 * @author wang.yishu
 */
public class NameAndNumberValidator extends AbstractValidator {

    private NameAndNumber nameAndNumber;

    private StudentsService studentsService;

    private static final String STUDENT_KEY = "studentKey";


    @Override
    public boolean canValidate(Field field) {
        nameAndNumber = field.getDeclaredAnnotation(NameAndNumber.class);
        return nameAndNumber != null;
    }

    @Override
    public String toValidate(Object entity, Field field) {
        Map<String, List<Object>> necessaryValidateData = this.chain.getNecessaryValidateData();


        return null;
    }
}
